<template>
    <div>
        <ul v-for="m in list" :key="m.id">
        <li>
            <!-- <router-link :to="`/Home/Message/Detail?id=${m.id}&title=${m.title}`">{{m.title}}</router-link> -->
            <router-link :to="{
                name:'xq',
                query:{
                    id:m.id,
                    title:m.title
                }
            }">
            {{m.title}}
            </router-link>
        </li>
    </ul>
    <router-view></router-view>
    </div>
</template>

<script>
export default {
    name:'Message',
    data() {
        return {
            list:[
                {id:1,title:'消息1'},
                {id:2,title:'消息2'},
                {id:3,title:'消息3'},
                {id:4,title:'消息4'}
            ]
        }
    },
}
</script>

<style>

</style>